package cn.xianshu.feign.client;


import cn.xianshu.coursedto.CourseDoc;
import cn.xianshu.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-search", fallbackFactory = CourseESFeignClientFallBackFactory.class)
@RequestMapping("/es/course")
public interface CourseESFeignClient {

    @PostMapping("/save")
    AjaxResult save(@RequestBody CourseDoc doc);

    @DeleteMapping("/remove")
    AjaxResult remove(@RequestParam Long id);
}
